//
//  BaseViewController.swift
//  SinaWeibo
//
//  Created by bot on 16/5/13.
//  Copyright © 2016年 bot. All rights reserved.
//

import UIKit

class BaseViewController: UITableViewController {
    
    var visitorLogin = false
    var visitorLoginView : VisitorLoginView?
    
    override func loadView() {
        
        visitorLogin ? super.loadView() : loadRegisterView()
        
    }
    
    private func loadRegisterView() {
        let v = VisitorLoginView()
        visitorLoginView = v
        view = visitorLoginView
    }

    override func viewDidLoad() {
        super.viewDidLoad()
        
        
        
    }

}
